<?php
  foreach ($CollectingDayList['master'] as $row);
?>
<div class="judul"><?php echo anchor($linkBack, $title);?> <span class="breadcrumb">Detail Collecting Day</span></div>
<?php
  $flashdata = $this->session->flashdata('message');
  $messages = isset ($flashdata)?pesan($flashdata):"";
  echo "$messages";
?>  
<div class="data-input">
    <fieldset>
        <legend>Data Collecting Day</legend>
        <label>Petugas</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['member']?></span>
        <label>Kegiatan</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['kegiatan']?></span>
        <label>Tanggal</label><span style="font-size: 11px;padding-top: 7px;"><?php echo datefmysql($row['tanggal'])?></span>
        <label>Lokasi</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['lokasi']?></span>
    </fieldset>
</div>  
<div class="data-list">
    <table class="tabel" style="width: 50%">
        <tr>
            <th>No</th>
            <th>Dropzone</th>
            <th>Jumlah (Rp.)</th>
        </tr>
        <?php
          $no = 1;
          foreach ($CollectingDayList['detail'] as $rows){
        ?>
        <tr class="<?php echo ($no%2)?'even':'odd';?>">
            <td align="center"><?php echo "$no";?></td>
            <td><?php echo $rows['dropzone']?></td>
            <td align="right"><?php echo rupiah($rows['jumlah'])?></td>
        </tr>
        <?php
           $totalAll = $totalAll + $rows['jumlah'];
           $no++;
          }
        ?>
        <tr>
            <td colspan="2" align="right">Total</td>
            <td align="right"><?php echo 'Rp. '.rupiah($totalAll);?></td>
        </tr>
    </table>
</div>
